<?php
function _autoloadClass($class){
    $path = realpath(dirname(__FILE__) . "/library/" . $class . ".php");
    if($path)
        include_once($path);
    else
        include_once(realpath(dirname(__FILE__) . "/model/" . $class . ".php"));
}
spl_autoload_register("_autoloadClass");
$layout = new Layout();
$layout->render();
